package com.yun.service;

import com.yun.entity.Dorm;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.entity.dto.UpdateDormByRoomNoDto;
import com.yun.util.CommonResult;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lyj
 * @since 2021-09-07
 */
public interface DormService extends IService<Dorm> {

    List<Dorm> getAllDorm();

    CommonResult updateDorm(UpdateDormByRoomNoDto updateDormByRoomNoDto);

    CommonResult insertDorm(Dorm dorm);

    CommonResult deleteDormByRoomNo(String roomNo);
}
